c# calendar button random dates

151

c# calendar button random dates -

DateTime RandomDay()
    {
        DateTime start = new DateTime(1900, 1, 1);
        Random gen = new Random();

        int range = (DateTime.Today - start).Days;           
        return start.AddDays(gen.Next(range));
    }

Comments

Submit
0 Comments